<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Mapping
 *
 * @author zelic
 */
class Mapping {
    var $entries;
    
    public function __construct() {
    }
    
    /**
     * Add a mapping from url to action
     * @param type $action
     * @param type $url
     */
    public function addRoute($action, $url){
        $this->entries[$url] = $action;
    }
    
    /**
     * Get action from an url
     * @param type $url
     * @return type
     */
    public function getRoute($url){
        return $this->entries[$url];
    }
}

?>
